SHELL=/bin/bash -e  # use bash as the shell, exit on errors
PARENT := $(shell basename "`pwd`")
MASTERTEXNAME='QSEPACK_2.0'

.PHONY: startup clean quick all

default: quick

startup:

clean:
	-rm *.aux *.log *.nav *.out *.snm *.toc *.bib nw00* *.tex *.pdf

all: clean
	nuweb  ${MASTERTEXNAME}.w
	pdflatex --draftmode ${MASTERTEXNAME}
	pdflatex --draftmode ${MASTERTEXNAME}
	pdflatex ${MASTERTEXNAME}
	open -a Preview ${MASTERTEXNAME}.pdf


quick:
	nuweb  ${MASTERTEXNAME}.w
	pdflatex ${MASTERTEXNAME}
	open -a Preview ${MASTERTEXNAME}.pdf
